import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import indexView from '@/views/home/index.vue'
import ssView from '@/views/home/ss.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/ss' },
    { path: '/home', name: 'home', component: homeView, children:[
    { path: 'index', name: 'index', component: indexView, },
    { path: 'ss', name: 'ss', component: ssView, },

    ]},

  ],
})

export default router
